#define _error_state		int

// private Defines
#define ERROR				0x0100
#define NOERROR				0x0000

// ROM
#define ROM_BORDER_01			0x000000
#define ROM_BORDER_02			0x00C000

#define ROM_BORDER_11			0x010000
#define ROM_BORDER_12			0x02FFFF

// UNDEFINED AREA
#define UN_BORDER_01			0x00C001
#define UN_BORDER_02			0x00DFFF

#define UN_BORDER_11			0x030000 
#define UN_BORDER_12			0x0EFFFF

#define UN_BORDER_21			0x0F4000
#define UN_BORDER_22			0xFFFFFF


_error_state write_mem(char *pdst, char *psrc, int len);
int read_mem(char *pdst);